<template>
	<view class="container" :style="{height: winHeight+'px;'}">
		<view style="padding: 1px;"> </view>
		<view class="home-number-panel">
			<view class="input-group">
				<view class="input-row">
					<text class="title">账号 ： </text>
					<input class="login-input" type="text" clearable focus v-model="account" placeholder="请输入账号"></input>
				</view>
			</view>
		</view>
<view class="logo" @click="bindLogin" :hover-class="!hasLogin ? 'logo-hover' : ''">
			<view class="logo-title">
				<view style="float: left;">
					<image class="logo-img" :src="avatarUrl"></image>
				</view>
				<text class="welcome">{{hasLogin ? '您好，'+author.realName : '您未登录'}}</text>
			</view>
			<view class="logo-direction"> 第一时间清理待办可以有效提升流程效率</view>
		</view>
		<view class="foot-row">
			<view class="uni-flex uni-row">
				<view class="foot-btn-nag">
					<navigator url="../reg/reg">微信</navigator>
				</view>
				<view>2</view>
				<view>3</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		onLoad: function(option) { //option为object类型，会序列化上个页面传递的参数
			console.log(option.id); //打印出上个页面传递的参数。
			console.log(option.name); //打印出上个页面传递的参数。
		},
		created() {
			var that = this;
			uni.getSystemInfo({
				success: function(res) {
					console.log(res.model);
					console.log(res.pixelRatio);
					console.log(res.windowWidth);
					console.log(res.windowHeight);
					that.winHeight = res.windowHeight;
					console.log(res.language);
					console.log(res.version);
					console.log(res.platform);
				}
			});
		},
		data() {
			return {
				loading: false,
				winHeight: 800,
				systemName: "F2BPM平台",
				account: "",
				password: "",

			}
		},
		methods: {
			sendSmsCode() {

			},
			login() {
				uni.navigateTo({
					url: "login2"
				})
			}
		}
	}
</script>

<style>
	@import url("@/static/home.css");
</style>
